﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.gxjdWebSite
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    public class Map_Register_Enterprise : EntityMapping<DB_Model.gxjdWebSite.Register_Enterprise>
    {
        public Map_Register_Enterprise()
        {
            Property(x => x.MainCode, map =>
            {
                map.Length(200);
            });

            Property(x => x.MainName, map =>
            {
                map.Length(200);
            });

            Property(x => x.Principal, map =>
            {
                map.Length(200);
            });

            Property(x => x.CountryCode, map =>
            {
                map.Length(200);
            });

            Property(x => x.CorporationNature, map =>
            {
                map.Length(200);
            });

            Property(x => x.area_province_code, map =>
            {
                map.Length(200);
            });

            Property(x => x.area_city_code, map =>
            {
                map.Length(200);
            });

            Property(x => x.area_region_code, map =>
            {
                map.Length(200);
            });

            Property(x => x.IndustryCode, map =>
            {
                map.Length(200);
            });

            Property(x => x.LicenseNo, map =>
            {
                map.Length(200);
            });

            Property(x => x.CACertificateNo, map =>
            {
                map.Length(200);
            });

            Property(x => x.TaxNo, map =>
            {
                map.Length(200);
            });

            Property(x => x.CreditGrade, map =>
            {
                map.Length(200);
            });

            Property(x => x.BankName, map =>
            {
                map.Length(200);
            });

            Property(x => x.AccountNo, map =>
            {
                map.Length(200);
            });

            Property(x => x.RegisteredCapital, map =>
            {

            });


            Property(x => x.RegisteredCapitalCurrency, map =>
            {
                map.Length(200);
            });


            Property(x => x.RegisteredCapitalUnit, map =>
            {
                map.Length(200);
            });

            Property(x => x.InformationPrincipal, map =>
            {
                map.Length(200);
            });

            Property(x => x.PhoneNo, map =>
            {
                map.Length(200);
            });

            Property(x => x.Address, map =>
            {
                map.Length(200);
            });

            Property(x => x.PostalCode, map =>
            {
                map.Length(200);
            });

            Property(x => x.Email, map =>
            {
                map.Length(200);
            });

            Property(x => x.MainType, map =>
            {
                map.Length(200);
            });

            Property(x => x.ValidatePeople, map =>
            {
                map.Length(200);
            });

            Property(x => x.ValidateTime, map =>
            {
                map.Length(200);
            });


            Property(x => x.LoginName, map =>
            {
                map.Length(200);
            });


            Property(x => x.LoginPassword, map =>
            {
                map.Length(200);
            });
        }
    }
}
